<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbreqmontoCreateDlg" widgetVar="PyfntbreqmontoCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbreqmontoTitle}">

            <h:form id="PyfntbreqmontoCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbreqmontoController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqmontoLabel_valormes}" for="valormes" />
                        <p:inputText id="valormes" value="#{pyfntbreqmontoController.selected.valormes}" title="#{myBundle.CreatePyfntbreqmontoTitle_valormes}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqmontoRequiredMessage_valormes}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqmontoLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbreqmontoController.selected.fecharegistro}" title="#{myBundle.EditPyfntbreqmontoTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbreqmontoRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqmontoLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbreqmontoController.selected.observaciones}" title="#{myBundle.CreatePyfntbreqmontoTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePyfntbreqmontoRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqmontoLabel_pyfntbrequerid}" for="pyfntbrequerid" />
                        <p:selectOneMenu id="pyfntbrequerid" value="#{pyfntbreqmontoController.selected.pyfntbrequerid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqmontoRequiredMessage_pyfntbrequerid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbrequerController.items}"
                                           var="pyfntbrequeridItem"
                                           itemValue="#{pyfntbrequeridItem}"
                                           itemLabel="#{pyfntbrequeridItem.pyfntbrequerid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbrequerConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbreqmontoLabel_pyfntbmesesid}" for="pyfntbmesesid" />
                        <p:selectOneMenu id="pyfntbmesesid" value="#{pyfntbreqmontoController.selected.pyfntbmesesid}" required="true" requiredMessage="#{myBundle.EditPyfntbreqmontoRequiredMessage_pyfntbmesesid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbmesesController.items}"
                                           var="pyfntbmesesidItem"
                                           itemValue="#{pyfntbmesesidItem}"
                                           itemLabel="#{pyfntbmesesidItem.pyfntbmesesid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbmesesConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbreqmontoController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbreqmontoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbreqmontoCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbreqmontoCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
